package com.xxxy.controller;


import com.alibaba.csp.sentinel.annotation.SentinelResource;
import com.xxxy.blockhandler.MoitorBlockHandler;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/ltf")
public class SentinelController {

    @SentinelResource(value = "helloResource",blockHandler = "helloBlockHandler",
            blockHandlerClass = MoitorBlockHandler.class)
    @GetMapping("xxx")
    public String hhh(){
        return "我是大帅哥";
    }



    }


